package bitbot.md;

import java.math.BigDecimal;
import java.util.List;

public class TimeAndSales extends MarketData {

	private final List<TimeAndSalesRec> m_records;
	
	@Override public MarketDataType type() { return MarketDataType.TIME_AND_SALES;}
	
	public List<TimeAndSalesRec> getRecords() {
		return m_records;
	}
	
	public TimeAndSales(PairExchangeData pair, long timestamp, List<TimeAndSalesRec> records){
		super(pair);
		m_records = records;
	}

	
	public static class TimeAndSalesRec {
		private final BigDecimal m_price;
		private final BigDecimal m_size;
		private final long m_timestamp;
		
		public BigDecimal getPrice() {
			return m_price;
		}

		public BigDecimal getSize() {
			return m_size;
		}

		public long getTimestamp() {
			return m_timestamp;
		}

		public TimeAndSalesRec(BigDecimal price, BigDecimal size, long timestamp) {
			m_price = price;
			m_size = size;
			m_timestamp = timestamp;
		}
		
		
		
	}
}
